package animation5.view.zhaolixiang.com.viewanimation5

import android.animation.TypeEvaluator

/**
 * Created by Administrator on 2017/12/21.
 */
class MyIntEvaluator : TypeEvaluator<Int> {
    override fun evaluate(fraction: Float, startValue: Int?, endVaue: Int?): Int {
        return (200+startValue.toString().toInt()+(endVaue.toString().toInt()
                -startValue.toString().toInt())*fraction).toInt();
    }
}